package com.lala.rennigou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lala.rennigou.pojo.EasybuyProduct;
import com.lala.rennigou.pojo.EasybuyProductCategory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface EasybuyProductCategoryMapper extends BaseMapper<EasybuyProductCategory> {
    List<EasybuyProductCategory> selectByMap(int type);

    List<EasybuyProduct> selectproduct();

    int produckByName(String name);

    List<EasybuyProductCategory> selectall();

    EasybuyProductCategory categoryById(int id);

    int categoryByName(String name);

}
